Support exporting jar#271
Conversation
Update function with no params and add plugin.xml
Support export jar feature.
jdneo
left a comment
There was a problem hiding this comment.
As @testforstephen has mentioned, there are several unnecessary files/code in this PR. Please remove them first. Also, remember add license header when you adding a new file.
|
Hi, this seams great. |
We will put an |
| case ExportSteps.ResolveProject: { | ||
| projectFolder = await resolveProject(pickSteps, node); | ||
| projectUri = Uri.parse(projectFolder); | ||
| rootNodes = await Jdtls.getProjects(projectUri.toString()); |
There was a problem hiding this comment.
Is rootNode here meaning a project node?
There was a problem hiding this comment.
Not exactly. For maven project as an example, rootNodes is an Array which includes all the modules defined in pom.xml.
There was a problem hiding this comment.
submodules are still projects. rootNode is misleading here, what is root? is it workspace root? And what is node? we don't have tree structure here
java.view.package.exportJar -> java.view.package.generateJar
| }, (progress, token) => { | ||
| return new Promise<IJarQuickPickItem[]>(async (resolve, reject) => { | ||
| token.onCancellationRequested(() => { | ||
| return reject(); |
| try { | ||
| step = await stepMap.get(step).execute(stepMetadata); | ||
| } catch (err) { | ||
| if (err === undefined) { |
There was a problem hiding this comment.
return err ? reject(${err}) : reject()
| } | ||
| const disposables: Disposable[] = []; | ||
| let pickBox: QuickPick<IJarQuickPickItem>; | ||
| const result = await new Promise<boolean>(async (resolve, reject) => { |
1.Fix disposables bugs 2.move stepMap to grobal
Add 'getMainMethod' command in jdtls.ext, which will return all the existing main methods of the workspace.